package cn.calm.dialog.service.impl;

import java.util.HashMap;
import java.util.Map;

import cn.calm.commons.exception.DeskException;
import cn.calm.commons.service.defaultimpl.DefaultServiceImpl;
import cn.calm.dialog.service.IDialogService;
import cn.calm.entity.Dialog;

public class DialogServiceImpl<T extends Dialog> extends DefaultServiceImpl<T> implements IDialogService<T> {
	public void update(T t) throws DeskException {
		Map<String,Object> parameter=new HashMap<String, Object>();
//		T temp=baseDao.load(Dialog.class, t.getId());
		parameter.put("dialog", t);
		baseDao.exceHQL("delete from cn.desk.dialog.entity.Button where dialog =:dialog",parameter);
		super.update(t);
	}
}
